<!-- 分页条 -->
<?php if ($this->pageCount): ?>
<div class="pagebar">
        <?php if (isset($this->previous)): ?>
    <span class="page_num"><a href="<?php echo $this->url(array('page' => $this->previous)); ?>" title="上一页">上一页</a></span>
        <?php else: ?>
    <span class="pre_page">上一页</span>
        <?php endif; ?>
        <?php foreach ($this->pagesInRange as $page): ?>
            <?php if ($page == $this->current): ?>
    <span class="current_page"><?php echo $page ?></span>
            <?php else: ?>
    <span class="page_num"><a href="<?php echo $this->url(array('page' => $page)); ?>" title="第<?php echo $page ?>页"><?php echo $page ?></a></span>
            <?php endif; ?>
        <?php endforeach; ?>
        <?php if (isset($this->next)): ?>
    <span class="page_num"><a href="<?php echo $this->url(array('page' => $this->next)); ?>" title="下一页">下一页</a></span>
        <?php else: ?>
    <span class="next_page">下一页</span>
        <?php endif; ?>
</div>
<?php endif; ?>
<!-- 分页条 -->